jq

Posted on 2019-10-16

Keep only some elements:

jq 'select(.value | startswith("prefix"))'

Load a string as json. If one of the field of the json object is a string representing JSON, we can load it into an object:

jq '.jsonString | fromjson'